# -*- coding: utf-8 -*-
from openerp import models, fields, api

class gmq_bs_seat_library(models.Model):
    '''
    图书馆信息
    '''
    _name = 'gmq.bs.seat.library'
    _rec_name = 'name'
    _description = u'图书馆信息'

    name = fields.Char(u'图书馆名')
    isactivity = fields.Boolean(u'是否开放',default = True)
    floor = fields.One2many('gmq.bs.seat.floor','library',u'关联楼层')
    room = fields.One2many('gmq.bs.seat.room','dylibrary',u'关联教室')
    seat = fields.One2many('gmq.bs.seat','dylibrary',u'关联座位')

